package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.woniu.entity.dto.LoginUserDTO;
import com.woniu.entity.vo.UserLoginVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaosong
 * @since 2023-04-01
 */
@Data
  @TableName("wnsys_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("手机号")

      private String mobile;

      @ApiModelProperty("密码")
      private String password;

      @ApiModelProperty("头像")
      private String avatar;

      @ApiModelProperty("昵称")
      private String name;

      @ApiModelProperty("用户类型 0启用 1封禁")
      private Integer userType;

      @ApiModelProperty("vpi类型 0非vpi 1vip")
      private Integer vip;

      @ApiModelProperty("逻辑删除")
      @TableLogic
      private Integer isDeleted;

    @ApiModelProperty("第三方")
     private String openid;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
}
